package sy.bo;

/**
 * 常用于向前台返回json格式的结果
 * 
 * @author 孙宇
 *
 */
public class JsonResult {

	private Boolean success = false;// 是否成功
	private String info = "";// 信息
	private Object result = null;// 结果对象

	public JsonResult() {

	}

	public JsonResult(Boolean success, String info) {
		this.success = success;
		this.info = info;
	}

	public JsonResult(Boolean success, String info, Object result) {
		this.success = success;
		this.info = info;
		this.result = result;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

}
